﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<!-- saved from url=(0014)about:internet -->
<head>
    <title>Windows Live Messenger Library Silverlight Sample</title>

    <style type="text/css">
    html, body {
	    height: 100%;
	    overflow: auto;
    }
    body {
	    padding: 0;
	    margin: 0;
    }
    #silverlightControlHost {
	    height: 100%;
	    margin-left: 1em;
    }
    
    #signInControl {
    	width: 398px;
    	height: 100px;
    	border: solid 1px #9D9D9E;
    	border-bottom: none;
    	margin-left: 1em;
    	margin-top: 1em;
    }
    </style>
    
    <script type="text/javascript" src="http://settings.messenger.live.com/api/1.0/Messenger.js"></script>

    <script type="text/javascript">
        Function.fromSilverlight = function(handler) {
            return function(sender, e) {
                handler(sender, e);
            };
        }
        
        Function.prototype.invoke = function Function$invoke() {
            this.apply(null, arguments);
        }
    
        function onSilverlightError(sender, args) {
            if (args.errorType == "InitializeError")  {
                var errorDiv = document.getElementById("errorLocation");
                if (errorDiv != null)
                    errorDiv.innerHTML = args.errorType + "- " + args.errorMessage;
            }
        }
    </script>
</head>

<body>
    <!-- Runtime errors from Silverlight will be displayed here.
	This will contain debugging information and should be removed or hidden when debugging is completed -->
	<div id='errorLocation' style="font-size: small;color: Gray;"></div>
	
	<div id='signInControl'></div>

    <div id="silverlightControlHost">
		<object data="data:application/x-silverlight," type="application/x-silverlight-2-b1" width="800px" height="600px">
			<param name="source" value="ClientBin/MessengerSample.xap"/>
			<param name="onerror" value="onSilverlightError" />
			<param name="background" value="white" />
			
			<a href="http://go.microsoft.com/fwlink/?LinkID=108182" style="text-decoration: none;">
     			<img src="http://go.microsoft.com/fwlink/?LinkId=108181" alt="Get Microsoft Silverlight" style="border-style: none"/>
			</a>
		</object>
		<iframe style='visibility:hidden;height:0;width:0;border:0px'></iframe>
    </div>
</body>
</html>
